package com.micangcaihang.micang.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <pre>
 *     author : Fandy
 *     e-mail : fandayongfly@gmail.com
 *     time   : 2017/08/04
 *     update : 2017/08/04
 *     desc   : 价格调查实体类
 *     version: 1.0
 * </pre>
 */

public class TaskPriceSurveyEntity implements Serializable{

    private List<XinLou> xinlou;
    private List<ZhongJie> zhongjie;
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<XinLou> getXinlou() {
        if (xinlou == null) {
            setXinlou(new ArrayList<>());
        }
        return xinlou;
    }

    public void setXinlou(List<XinLou> xinlou) {
        this.xinlou = xinlou;
    }

    public List<ZhongJie> getZhongjie() {
        if (zhongjie == null) {
            setZhongjie(new ArrayList<>());
        }
        return zhongjie;
    }

    public void setZhongjie(List<ZhongJie> zhongjie) {
        this.zhongjie = zhongjie;
    }

    public static class XinLou implements Serializable{
        /**
         * unit_price : 50.00
         * reference_name : 公园
         * estimate_fee : 200.00
         */

        private String unit_price;
        private String reference_name;
        private String estimate_fee;
        private String evaluate_id;

        public String getEvaluate_id() {
            return evaluate_id == null ? "0" : evaluate_id;
        }

        public void setEvaluate_id(String evaluate_id) {
            this.evaluate_id = evaluate_id;
        }

        public String getUnit_price() {
            return unit_price == null ? "" : unit_price;
        }

        public void setUnit_price(String unit_price) {
            this.unit_price = unit_price;
        }

        public String getReference_name() {
            return reference_name == null ? "" : reference_name;
        }

        public void setReference_name(String reference_name) {
            this.reference_name = reference_name;
        }

        public String getEstimate_fee() {
            return estimate_fee == null ? "" : estimate_fee;
        }

        public void setEstimate_fee(String estimate_fee) {
            this.estimate_fee = estimate_fee;
        }

        @Override
        public String toString() {
            return "XinLou{" +
                    "unit_price='" + unit_price + '\'' +
                    ", reference_name='" + reference_name + '\'' +
                    ", estimate_fee='" + estimate_fee + '\'' +
                    ", evaluate_id='" + evaluate_id + '\'' +
                    '}';
        }
    }

    public static class ZhongJie implements Serializable{
        /**
         * unit_price : 1000.00
         * reference_name : 公园
         * evaluate_source : 链家
         * contacts : 鄢陵
         */

        private String unit_price;
        private String reference_name;
        private String evaluate_source;
        private String contacts;
        private String evaluate_id;

        public String getEvaluate_id() {
            return evaluate_id == null ? "0" : evaluate_id;
        }

        public void setEvaluate_id(String evaluate_id) {
            this.evaluate_id = evaluate_id;
        }

        public String getUnit_price() {
            return unit_price == null ? "" : unit_price;
        }

        public void setUnit_price(String unit_price) {
            this.unit_price = unit_price;
        }

        public String getReference_name() {
            return reference_name == null ? "" : reference_name;
        }

        public void setReference_name(String reference_name) {
            this.reference_name = reference_name;
        }

        public String getEvaluate_source() {
            return evaluate_source == null ? "" : evaluate_source;
        }

        public void setEvaluate_source(String evaluate_source) {
            this.evaluate_source = evaluate_source;
        }

        public String getContacts() {
            return contacts == null ? "" : contacts;
        }

        public void setContacts(String contacts) {
            this.contacts = contacts;
        }

        @Override
        public String toString() {
            return "ZhongJie{" +
                    "unit_price='" + unit_price + '\'' +
                    ", reference_name='" + reference_name + '\'' +
                    ", evaluate_source='" + evaluate_source + '\'' +
                    ", contacts='" + contacts + '\'' +
                    ", evaluate_id='" + evaluate_id + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "TaskPriceSurveyEntity{" +
                "xinlou=" + xinlou.toString() +
                ", zhongjie=" + zhongjie.toString() +
                ", id='" + id + '\'' +
                '}';
    }
}
